let mainHandle = require('../core/mainHandle');
let totalConfig = mainHandle.totalConfig;
let playerConfig = totalConfig.player[100000];

//角色基础信息

class BasicInfo {
    constructor(opts) {
        opts = opts || {};
        this.name = opts.name;
        this.money = opts.money || 0;
        this.gold = opts.gold || 0;
        this.state = opts.state || 0;
        this.lvl = opts.lvl || 1;
        this.exp = opts.exp || 0;
        this.map = opts.map || [];
        this.advMaps = opts.advMaps || null;
        this.skills = opts.skills || playerConfig.initSkills.slice();
        this.mapId = opts.mapId || 120001;
        this.latticeId = opts.latticeId || 1;
        this.mapInfo = opts.mapInfo || null;
        this.exploreValue =  opts.exploreValue || 0;
    }
}

module.exports = BasicInfo;